﻿/*------------------------------------------------
// File Description: StandardPiece DataBase Entity
// Author:			 汪亮
// Create Time:		 2020-04-16 20:10:03
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using IOA.MES.DataAccess.Enum;
using System.Runtime.CompilerServices;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 标片
    /// </summary>
    [Table(nameof(StandardPiece))]
    public class StandardPiece : BaseEntity
    {
        private string _productCode = string.Empty;
        private string _model = string.Empty;

        #region Public Property

        ///<Summary>
        /// 标片条码
        ///</Summary>
        public string ProductCode
        {
            get { return string.IsNullOrWhiteSpace(_productCode) ? string.Empty : _productCode; }
            set { _productCode = value; }
        }

        ///<Summary>
        /// 型号
        ///</Summary>
        public string Model
        {
            get { return string.IsNullOrWhiteSpace(_model) ? string.Empty : _model; }
            set { _model = value; }
        }

        ///<Summary>
        /// Pmax
        ///</Summary>
        public decimal Pmax { get; set; }

        ///<Summary>
        /// PmaxTolerance
        ///</Summary>
        public decimal PmaxToleranceDown { get; set; }

        ///<Summary>
        /// PmaxTolerance
        ///</Summary>
        public decimal PmaxToleranceUp { get; set; }

        ///<Summary>
        /// Voc
        ///</Summary>
        public decimal Voc { get; set; }

        ///<Summary>
        /// VocTolerance
        ///</Summary>
        public decimal VocToleranceDown { get; set; }

        ///<Summary>
        /// VocTolerance
        ///</Summary>
        public decimal VocToleranceUp { get; set; }

        ///<Summary>
        /// Isc
        ///</Summary>
        public decimal Isc { get; set; }

        ///<Summary>
        /// IscTolerance
        ///</Summary>
        public decimal IscToleranceDown { get; set; }

        ///<Summary>
        /// IscTolerance
        ///</Summary>
        public decimal IscToleranceUp { get; set; }

        ///<Summary>
        /// Vmp
        ///</Summary>
        public decimal Vmp { get; set; }

        ///<Summary>
        /// VmpTolerance
        ///</Summary>
        public decimal VmpToleranceDown { get; set; }

        ///<Summary>
        /// VmpTolerance
        ///</Summary>
        public decimal VmpToleranceUp { get; set; }

        ///<Summary>
        /// Imp
        ///</Summary>
        public decimal Imp { get; set; }

        ///<Summary>
        /// ImpTolerance
        ///</Summary>
        public decimal ImpToleranceDown { get; set; }

        ///<Summary>
        /// ImpTolerance
        ///</Summary>
        public decimal ImpToleranceUp { get; set; }

        ///<Summary>
        /// FF
        ///</Summary>
        public decimal FF { get; set; }

        ///<Summary>
        /// FFTolerance
        ///</Summary>
        public decimal FFToleranceDown { get; set; }

        ///<Summary>
        /// FFTolerance
        ///</Summary>
        public decimal FFToleranceUp { get; set; }

        ///<Summary>
        /// 生效日期
        ///</Summary>
        public DateTime StartDate { get; set; }

        ///<Summary>
        /// 截止日期
        ///</Summary>
        public DateTime EndDate { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public CommonStatus Status { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 标片
        /// </summary>
        public virtual DbSet<StandardPiece> StandardPieces { get; set; }
    }
}